<template>
  <div id="nav-component">
    <div class="left">
      <slot name="left"></slot>
    </div>
    <div class="middle">
      <slot name="middle"></slot>
    </div>
    <div class="right">
      <slot name="right"></slot>
    </div>
  </div>
</template>

<script>
export default {
  name: "Nav",
}
</script>

<style lang="less" scoped>
#nav-component {
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  height: 45px;
  line-height: 45px;
  display: flex;
  background-color: #ff8198;
  z-index: 9;
  .left {
    flex: 2;
  }
  .middle {
    flex: 6;
    text-align: center;
    color: #fff;
  }
  .right {
    flex: 2;
  }
}
</style>
